<?php

namespace app\common\model;

use app\extra\BaseModel;

class City extends BaseModel
{
    public function setAddedField(&$item){
        // $item['public_desc'] = \app\extra\DBCont::getPublishStatus($item['publish']);

        $item['num'] = model('school')->where('city_id', $item['id'])->count();
    }
}
